package com.bawei.room_test;

import android.app.Application;
import android.app.IntentService;
import android.content.IntentSender;
import android.os.AsyncTask;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class App extends Application {
    public static App instance;
    private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors();
    private static final int CORE_POOL_SIZE = Math.max(2,Math.min(CPU_COUNT - 1,4));

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        ExecutorService executorService = Executors.newFixedThreadPool(CORE_POOL_SIZE);

    }
}
